<template>
  <div class="com_top_navBar">
		<van-nav-bar
			:title="title"
			left-arrow
			@click-left="onClickLeft"
			@click-right="onClickRight"
		>
		<template v-if="!!title" #right>
			<van-icon name="search" size="18" />
		</template>
		</van-nav-bar>
	</div>
</template>

<script>
export default {
	name: "ComTopNavBar",
	props:{
		title:{
			type:String,
			default:""
		}
	},
	data(){
		return {

		}
	},
	methods:{
		onClickLeft(){
			this.$router.go(-1)
		},
		onClickRight(){

		}
	}
};
</script>

<style lang="less">
</style>